#include "nonewindow.h"

#include "ui_nonewindow.h"

#include <Application.h>
#include <QFileDialog>
#include <QToolTip>
#include <data/Message.pb.h>
#include <CommonUtils.h>
using namespace proto;


NoneWindow::NoneWindow(QWidget* parent)
    : QWidget(parent),
      ui(new Ui::NoneWindow) {
    ui->setupUi(this);
    init();
}

NoneWindow::~NoneWindow() {
    delete ui;
}

void NoneWindow::init() {
    // connect(ui->titlebar, &TitleBar::signalButtonCloseClicked, this, &NoneWindow::onButtonCloseClicked);
    // connect(ui->titlebar, &TitleBar::signalButtonMaxClicked, this, &NoneWindow::onButtonMaxClicked);
    // connect(ui->titlebar, &TitleBar::signalButtonMinClicked, this, &NoneWindow::onButtonMinClicked);
    // connect(ui->titlebar, &TitleBar::signalButtonRestoreClicked, this, &NoneWindow::onButtonRestoreClicked);

}

void NoneWindow::onButtonCloseClicked() {
    emit signalButtonCloseClicked();
}

void NoneWindow::onButtonMaxClicked() {
    emit signalButtonMaxClicked();
}

void NoneWindow::onButtonMinClicked() {
    emit signalButtonMinClicked();
}

void NoneWindow::onButtonRestoreClicked() {
    emit signalButtonRestoreClicked();
}

void NoneWindow::onWindowRestore() {
    // ui->titlebar->showButtonMax();
}
